package models

import (
	"time"
)

type Tags struct {
	ID                uint       `gorm:"primaryKey" json:"id"`
	TagID             string     `gorm:"column:tag_id;type:varchar(64);unique" json:"tag_id"`
	TagName           string     `gorm:"column:tag_name;type:varchar(128)" json:"tag_name"`
	Status            int8       `gorm:"column:status;type:tinyint(4)" json:"status"`
	UpdateTime        *time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	CityID            *string    `gorm:"column:city_id;type:varchar(100)" json:"city_id"`
	City              string     `gorm:"column:city;type:varchar(64)" json:"city"`
	BuildingID        *string    `gorm:"column:building_id;type:varchar(100)" json:"building_id"`
	Building          string     `gorm:"column:building;type:varchar(128)" json:"building"`
	ManagerUnitTypeID *string    `gorm:"column:manager_unit_type_id;type:varchar(100)" json:"manager_unit_type_id"`
	ManagerUnitType   string     `gorm:"column:manager_unit_type;type:varchar(128)" json:"manager_unit_type"`
	ManagerUnitID     *string    `gorm:"column:manager_unit_id;type:varchar(100)" json:"manager_unit_id"`
	ManagerUnit       string     `gorm:"column:manager_unit;type:varchar(128)" json:"manager_unit"`
	ContractCompanyID *string    `gorm:"column:contract_company_id;type:varchar(100)" json:"contract_company_id"`
	ContractCompany   string     `gorm:"column:contract_company;type:varchar(128)" json:"contract_company"`
	UserTypeID        *string    `gorm:"column:user_type_id;type:varchar(100)" json:"user_type_id"`
	UserType          string     `gorm:"column:user_type;type:varchar(64)" json:"user_type"`
}

func (Tags) TableName() string {
	return "tag"
}
